Advanced Architecting on AWS
Cost Explorer โข Budgets โข Savings Plans โข Right-Sizing โข Spot
| Tool | Purpose | Key Feature |
|---|---|---|
| Cost Explorer | Visualize & analyze spend | Filters by service, account, tag. Forecasting. |
| AWS Budgets | Alert on thresholds | Cost, usage, RI/SP coverage alerts. Auto-actions. |
| Cost & Usage Report (CUR) | Granular billing data | Hourly line-item data โ S3 โ Athena/QuickSight |
| Compute Optimizer | Right-sizing recommendations | ML-based analysis of CPU/memory utilization |
| Cost Anomaly Detection | Detect unexpected spend | ML monitors spending patterns, alerts on anomalies |
| Aspect | Savings Plans | Reserved Instances |
|---|---|---|
| Commitment | $/hour spend commitment | Specific instance type/region |
| Flexibility | Compute SP: any instance family/region/OS | Convertible RI: change attributes (lower discount) |
| Discount | Up to 72% (EC2 Instance SP) | Up to 72% (Standard RI) |
| Applies to | EC2, Fargate, Lambda, SageMaker | EC2, RDS, OpenSearch, ElastiCache, Redshift |
| Term | 1 or 3 years | 1 or 3 years |
| Recommendation | Start here โ simpler, flexible | Use for RDS/ElastiCache (no SP available) |
# Get Compute Optimizer recommendations aws compute-optimizer get-ec2-instance-recommendations \ --query 'instanceRecommendations[].{Instance:instanceArn,Current:currentInstanceType,Recommended:recommendationOptions[0].instanceType}' # Check Savings Plan recommendations aws cost-explorer get-savings-plans-purchase-recommendation \ --savings-plans-type COMPUTE_SP --term-in-years ONE_YEAR \ --payment-option NO_UPFRONT --lookback-period-in-days SIXTY_DAYS # Create a budget with alert aws budgets create-budget --account-id 123456789012 \ --budget file://monthly-budget.json \ --notifications-with-subscribers file://alerts.json
Q1: A company runs various EC2 instance types across multiple regions and wants maximum flexibility in their commitment discount. What should they use?
A) Standard RIs B) Convertible RIs C) Compute Savings Plans D) EC2 Instance Savings Plans
Q2: Which strategy minimizes Spot interruption risk for a batch processing workload?
A) Use one instance type in one AZ B) Diversify across multiple instance types and AZs with capacity-optimized allocation C) Use only largest instances D) Set a max price
Visibility
Cost Explorer, Budgets (alerts + auto-actions), CUR for granular data, Cost Anomaly Detection (ML).
Commitment Discounts
Savings Plans (flexible, compute). RIs (databases). 1 or 3 year terms. Up to 72% off.
Spot & Right-Sizing
Spot up to 90% off (fault-tolerant). Compute Optimizer for right-sizing. Delete unused resources.
Tagging
Cost allocation tags for attribution. Enforce via SCPs. Report by project, team, environment.